package com.atguigu.springcloud.alibaba.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

@Service
public class OrderService {
    @SentinelResource("goods") //监听这个查询商品的方法
    public void queryGoods() {
        System.err.println("查询商品");
    }
}
